<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>
<head>
<title><spring:message code="sp.faq.answer.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>

</head>

<body><%@include file="../top_menu.jsp"%>
<table width="100%">
	<tr>
		<td><c:import url="/WEB-INF/jsp/serviceprovider/faq/faq_menu.jsp" />
		</td>
	</tr>
</table>
<table width="45%" align="center">
	<tr>
		<td>
			<br/>
			<br/>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="text" size="50" id="keyword" value="<%=request.getParameter("keyword")!=null?request.getParameter("keyword"):"" %>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="button" class='ui-button ui-state-default ui-corner-all' value="Go" onclick="javascript:window.location='faq_answer.htm?keyword=' + document.getElementById('keyword').value;" />
			<br/>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<spring:message code="sp.faq.answer.label.findanswer" />
		</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
	<c:if test="${not empty listAnswers.pageItems}">
	<tr>
		<td align="right">
		
			<c:if test="${listAnswers.pageNumber>1}">		
				<a href="faq_answer.htm?pageNo=${listAnswers.pageNumber-1}&keyword=<%=request.getParameter("keyword")!=null?request.getParameter("keyword"):"" %>">Previous Page&nbsp;&nbsp;<img src="../../images/previous.jpg" border="0" alt="Previous page"/></a>		
			</c:if> 		
			<c:if test="${listAnswers.pageNumber<listAnswers.pagesAvailable}">
				<a href="faq_answer.htm?pageNo=${listAnswers.pageNumber+1}&keyword=<%=request.getParameter("keyword")!=null?request.getParameter("keyword"):"" %>">Next page&nbsp;&nbsp;<img src="../../images/next.jpg" border="0" alt="Next page"/></a>		
			</c:if>
		</td>	
	</tr>	
	<tr>
		<td>	
			<ul>
				<c:forEach var="answer" items="${listAnswers.pageItems}" varStatus="i">		
						<li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="view_answer.htm?id=${answer.id}">${answer.questionSubject}</a><br/>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Last updated: ${answer.updated} | ID: ${answer.id}
						</li><br/>						
						<br/>		
				</c:forEach>
			</ul>
		</td>
	</tr>	
	</c:if>
	<c:if test="${empty listAnswers.pageItems}">
		<td><b><spring:message code="sp.faq.answer.label.noresultfound" /></b></td>
	</c:if>
	
</table>	
<%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>